#include <OneWire.h>
#include <DallasTemperature.h>

OneWire w1(D1);
DallasTemperature sensor(&w1);

void setup() {
  // put your setup code here, to run once:
  Serial.begin(74880);
  sensor.begin();
}

void loop() {
  // put your main code here, to run repeatedly:
  sensor.requestTemperatures();
  float temp = sensor.getTempCByIndex(0);
  Serial.println(temp);
  delay(1000);
}
